package FirstRMITest;



import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class ComputeEngine extends UnicastRemoteObject implements Compute {
	
	protected ComputeEngine() throws RemoteException {
		
	}
	
	@Override
	public AnObject executeTask(Task<AnObject> task) throws RemoteException {
		return task.execute();
	}
	
	public AnObject makeObject() throws RemoteException {
		return new AnObject();
	}
	
	public void print(String text) throws RemoteException {
		System.out.println(text);
	}

	@Override
	public void print() throws RemoteException {
		// TODO Auto-generated method stub
		
	}

}